package ontology_ui;

import java.awt.BorderLayout;
import java.awt.Container;
import java.awt.Toolkit;
import javax.swing.JFrame;

/**
 * Frame donde se agregan los dos JPane principales: DescriptionPane y
 * ChoisePane
 *
 * @author felipe & javi
 */
public class Frame extends JFrame {

    public Frame() {
        this.setTitle("Computer Ontology");
        this.setResizable(true);
        this.setSize(Toolkit.getDefaultToolkit().getScreenSize());
        this.setLocationRelativeTo(null);

        Container myCont = this.getContentPane();
        myCont.setLayout(new BorderLayout(2, 2));

        DescriptionPane panelDescripcion = new DescriptionPane();
        myCont.add(panelDescripcion, BorderLayout.CENTER);

        ChoisePane panelElecciones = new ChoisePane(panelDescripcion);
        myCont.add(panelElecciones, BorderLayout.NORTH);

        this.setVisible(true);
        this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    }
}